﻿using System.Collections.Generic;

namespace OneKillProcess
{
    public class Config
    {
        public string AppName { get; set; }
        public string Version { get; set; }
        public List<BtnItem> ProcessList { get; set; }

        // 重写 ToString 方法
        public override string ToString()
        {
            string jsonString = ConfigUtil.SerializeObject(this);
            return jsonString;
        }
    }


    public class BtnItem
    {
        public string ButtonName { get; set; }
        public string ProcessName { get; set; }
        public string ProcessPath { get; set; }

        // 重写 ToString 方法
        public override string ToString()
        {
            string jsonString = ConfigUtil.SerializeObject(this);
            return jsonString;
        }
    }
}